import request from '@/utils/request'

// 查询话单列表
export function listTel(query) {
  return request({
    url: '/bill/tel/list',
    method: 'get',
    params: query
  })
}

export function listTel1(query) {
  return request({
    url: '/bill/tel/list1',
    method: 'get',
    params: query
  })
}

export function getTypeList(telList1) {
  return request({
    url: '/bill/tel/typeList',
    method: 'get',
    params: telList1
  })
}

export function getResponseData() {
  return request({
    url: '/bill/tel/responseData',
    method: 'get'
  })
}

// 查询话单详细
export function getTel(id) {
  return request({
    url: '/bill/tel/' + id,
    method: 'get'
  })
}

// 新增话单
export function addTel(data) {
  return request({
    url: '/bill/tel',
    method: 'post',
    data: data
  })
}

// 修改话单
export function updateTel(data) {
  return request({
    url: '/bill/tel',
    method: 'put',
    data: data
  })
}

// 删除话单
export function delTel(id) {
  return request({
    url: '/bill/tel/' + id,
    method: 'delete'
  })
}


